 |
|
|
|
|
The TabStrip |
|
|
|
| |
 |
|
|
|
|
Common Properties of the TabStrip Control |
|
|
|
| |
 |
|
|
|
|
Using a Container Control |
|
|
|
| |
 |
|
|
|
|
Lining Up the Containers |
|
|
|
| |
 |
|
|
|
|
Changing Tabs |
|
|
|
| |
 |
|
|
|
|
The SSTab Control |
|
|
|
| |
 |
|
|
|
|
Common Properties of the SSTab Control |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercise |
|
|
|
| |
| |
 |
|
|
|
|
Drag and Drop Defined |
|
|
|
| |
 |
|
|
|
|
A Sample Application |
|
|
|
| |
 |
|
|
|
|
Automatic Drag and Drop |
|
|
|
| |
 |
|
|
|
|
Moving the Control |
|
|
|
| |
 |
|
|
|
|
Changing the Drag Icon |
|
|
|
| |
 |
|
|
|
|
No Dropping Here |
|
|
|
| |
 |
|
|
|
|
Time to Save Your Work |
|
|
|
| |
 |
|
|
|
|
The DragOver() Event |
|
|
|
| |
 |
|
|
|
|
Manual Drag and Drop |
|
|
|
| |
 |
|
|
|
|
Removing Items from the List Box |
|
|
|
| |
 |
|
|
|
|
Simplifying Drag and Drop |
|
|
|
| |
 |
|
|
|
|
Drop and Remove |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
| |
 |
|
|
|
|
Speed Optimization Tricks |
|
|
|
| |
 |
|
|
|
|
Avoid the Use of Variant Data Types |
|
|
|
| |
 |
|
|
|
|
Integer Versus Long Data Types |
|
|
|
| |
 |
|
|
|
|
Byte Versus Integer Data Types |
|
|
|
| |
 |
|
|
|
|
Fixed Strings Versus Dynamic Strings |
|
|
|
| |
 |
|
|
|
|
Specific Object Types Versus Generic Object Types |
|
|
|
| |
 |
|
|
|
|
Procedure Call Versus In-line Code |
|
|
|
| |
 |
|
|
|
|
Cached Properties Versus Not Cached |
|
|
|
| |
 |
|
|
|
|
Toggle Boolean Data Types Using the Not Operator |
|
|
|
| |
 |
|
|
|
|
Use vbNullString Instead of an Empty String |
|
|
|
| |
 |
|
|
|
|
The Len() Function Versus an Empty String |
|
|
|
| |
 |
|
|
|
|
Dont Compare Variables for Not Equal to Zero |
|
|
|
| |
 |
|
|
|
|
Use For . . . Each Instead of For . . . Next |
|
|
|
| |
 |
|
|
|
|
With . . . End With |
|
|
|
| |
 |
|
|
|
|
Hide Controls When Theyre Loading |
|
|
|
| |
 |
|
|
|
|
Using Move Is Faster Than Setting Left and Top Properties |
|
|
|
| |
 |
|
|
|
|
Transaction Processing |
|
|
|
| |
 |
|
|
|
|
Use SQL Instead of ADO Objects |
|
|
|
| |
 |
|
|
|
|
Forward Only Versus Keyset |
|
|
|
| |
 |
|
|
|
|
Forward Only Versus Dynamic |
|
|
|
| |
 |
|
|
|
|
Keyset Versus Dynamic |
|
|
|
| |
 |
|
|
|
|
Use an Image Control Instead of a Picture Control |
|
|
|
| |
 |
|
|
|
|
Set the ClipControls Property to False |
|
|
|
| |
 |
|
|
|
|
Set the AutoRedraw Property to True |
|
|
|
| |
 |
|
|
|
|
Size Optimization Tricks |
|
|
|
| |
 |
|
|
|
|
Get Rid of Unused Dim Statements |
|
|
|
| |
 |
|
|
|
|
Get Rid of Unused Declare Statements |
|
|
|
| |
 |
|
|
|
|
Eliminate Dead Code |
|
|
|
| |
 |
|
|
|
|
Comments Do Not Increase Size |
|
|
|
| |
 |
|
|
|
|
Compile to p-code Instead of Native EXE |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |